{% load festivals %}
{% load i18n %}

<h1>
    {% blocktrans with festival.get_fest_type_display as fest_type and festival.start_date|date as start_date and festival.end_date|date as end_date %}{{ fest_type }} festival "{{ festival }}" will be held from {{ start_date }} to {{ end_date }}{% endblocktrans %}
</h1> 


<p>{% trans 'Concerts held' %}:
<ul>
{% if festival.concert_set.all %}
    {% for concert in festival.concert_set.all %}
    <li>
        <p>
            {% blocktrans with concert.start_time|date as start_date and concert.start_time|time as start_time and concert.end_time|date as end_date and concert.end_time|time as end_time and concert.location as location %}Concert "{{ concert }}" will be held from {{ start_date }} {{ start_time }} to {{ end_date }} {{ end_time }} at {{ location }}{% endblocktrans %}<br />
            {% trans 'Participants are' %}:
            <ul>
                <li>
                    {% trans 'Hosts' %}:
                    {% show_participants concert.hosts.all %}
                </li>
                {% ifequal festival.fest_type 'C' %}
                <li>
                    {% trans 'Judges' %}:
                    {% show_participants concert.judges.all %}
                </li>
                {% endifequal %}
                <li>
                    {% trans 'Performers' %}:
                    {% show_participants concert.performance_set.all %}
                </li>
            </ul>
        </p>
    </li>
    {% endfor %}
{% else %}
    <li>{% trans 'No concerts found' %}</li>
{% endif %}
</ul></p>
